package org.example.lambda;

public class TypeInterfaceTest {


    public static void main(String[] args) {

        printStringLength(s -> s.length());


    }

    public static void printStringLength(StringLengthLambda lengthLambda){
        System.out.println(lengthLambda.getStringLength("hello lambda"));
    }


    interface StringLengthLambda {
        int getStringLength(String s);
    }

}
